<?php
class Color extends Doctrine_Record {
    public function setTableDefinition() {
        $this->setTableName('color');
        $this->hasColumn('hex', 'string', 7);
        $this->hasColumn('id_color_producto', 'integer');
    }
    
    public function setUp(){
        $this->hasMany('Producto as productos', array(
            'local' => 'id_color_producto',
            'foreign' => 'id_producto_color',
            'refClass' => 'Coloracion'
        ));
    }
}
?>